package com.heatup.apt.api.service;


import com.baomidou.framework.service.ISuperService;
import com.heatup.apt.model.user.UserProductService;

import java.math.BigDecimal;
import java.util.Map;

/**
 *
 * UserProductService 表数据服务层接口
 *
 */
public interface UserProductServiceService extends ISuperService<UserProductService> {


    /**
     * 团课包月卡优惠券兑换
     * @param userId
     * @param dayNum
     * @param storeId
     * @param couponDetailId
     * @return
     */
     Map<String,Object> addUserMonthTeamCourseProductDays(Integer userId, int dayNum, Integer storeId);
     
     UserProductService queryUserProductServiceByUserIdAndType(Integer userId, String type);
     
     /**
      * 获取用户年卡可兑换的天数
      * @param userId
      * @return
      */
     Integer getUserHasYearCardConvertDateCount(Integer userId);
     
     /**
      * 获取年卡每日单价
      * @return
      */
     BigDecimal getYearCardEveyDayPrice();
     
     /**
      * 判断用户是否拥有年卡服务
      * @param userId
      * @return
      */
     Integer checkUserHasYearCardService(Integer userId);
     
     /**
      * 获取用户拥有年卡得时长
      * @param userId
      * @return
      */
     Integer getUserHasYearCardSurplusDateCount(UserProductService userProductService);
}